package com.atguigu.scala.chapter_05_function_01

object Scala_04 {
  def main(args: Array[String]): Unit = {
    //    def func(name:String):String={
    //      return s"name=$name"
    //    }
    //    val f=func("ralph") _
    //    println(f )
    //    println(func("Ralph"))
    def func(): String = {
      return s"ralph"
    }

    val f0: Unit = func _
    val f1: () => String = func
    println(f0)
    println(f1.toString())

  }


}
